import peewee as pw

from awesomest_spider import glb


# 定义 user 表的字段
class User(glb.Model):
    username = pw.CharField(primary_key=True)
    password = pw.CharField()
    visible_spider = pw.CharField(default='[]')  # 能看到哪个爬虫, 值是 JSON 字符串, 如: ["jd", "tmall"]
